import request from './request'

// 视频管理API
export const videoApi = {
  // 查询视频列表
  getVideoList(data) {
    return request({
      url: '/video/findVideoList',
      method: 'post',
      data
    })
  },

  // 添加视频
  addVideo(data) {
    return request({
      url: '/video/addVideo',
      method: 'post',
      data
    })
  },

  // 修改视频
  updateVideo(data) {
    return request({
      url: '/video/updataVideo',
      method: 'put',
      data
    })
  },

  // 删除视频
  deleteVideo(id) {
    return request({
      url: '/video/delVideoById',
      method: 'delete',
      params: { id }
    })
  }
}
